/*
* 文 件 名:  FileUpload.java
* 版    权:  Tydic Technologies Co., Ltd. Copyright 1993-2012,  All rights reserved
* 描    述:  <描述>
* 修 改 人:  aganzhoul
* 修改时间:  2012-9-14
* 跟踪单号:  <跟踪单号>
* 修改单号:  <修改单号>
* 修改内容:  <修改内容>
*/

package com.tydic.simple.action.demo;

import com.opensymphony.xwork2.ActionSupport;
import java.io.File;



/**
* <一句话功能简述>
* <功能详细描述>
* 
* @author  aganzhoul
* @version  [版本号, 2012-9-14]
* @see  [相关类/方法]
* @since  [产品/模块版本]
*/

public class FileUploadAction extends ActionSupport {
    
    private File doc;
    
    private String docFileName;
    
    private String docContentType;
    
    private String username;
    
    private String password;
    
    /**
    * 注释内容
    */
    
    private static final long serialVersionUID = 923196350708358080L;
    
    /**
     * 上传文件
     * @see [类、类#方法、类#成员]
     */
    public void upload() {
        //try {
            //java.io.PrintWriter pw =ServletActionContext.getResponse().getWriter();
            //pw.print("{'aa':'avalue1', 'bb':'bvalue1'}");
            //pw.close();
        //}
        //catch (IOException e) {
            //e.printStackTrace();
        //}
        
        
    }
    
    public File getDoc() {
        return doc;
    }
    
    public void setDoc(File doc) {
        this.doc = doc;
    }
    
    public String getDocFileName() {
        return docFileName;
    }
    
    public void setDocFileName(String docFileName) {
        this.docFileName = docFileName;
    }
    
    public String getDocContentType() {
        return docContentType;
    }
    
    public void setDocContentType(String docContentType) {
        this.docContentType = docContentType;
    }
    
    public String getUsername() {
        return username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    public String getPassword() {
        return password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
}
